<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include 'comm/head.php';?>
<link href="<?php echo $this->config->item('static_url'); ?>css/channel.css" rel="stylesheet" type="text/css" media="all" />
</head>

<body>
<div class="ui-header-fixed"><?php include 'comm/header.php';?></div>
<div class="g-width-990 alibaba clearfix" id="page990">
<div class="crumb global">
	<a href="<?php echo $this->config->base_url();?>">首页</a> &raquo;
   <!-- <a href="<?php echo $this->config->base_url('channel');?>">所有类别</a> &raquo;-->
    <strong><?php echo $selfchannel['title'];?></strong>
</div>
<div id="fliterKeywords" class="fliterKeyword" style="text-align:left;">
	<strong ></strong>
    <span class="con">
        <span id="include_keywords_div">
            <div style="clear:both;"></div>
        </span>
        <span id="include_keywords_more_div">
        <div style=" height:10px;clear:both;"></div>
        </span>
    </span>
</div>
<div class="g-left g-width-190 clearfix">
<!-- category start -->	
<div id="cate-navigator-con" class="ui-box ui-box-normal">			
    <div class="cate-wrap J-lazy-f">
        <h2><?php echo $selfchannel['title'];?></h2>
        <?php include 'comm/channel_menu.php';?>	
    </div>
</div>
<!-- category end -->
<!-- Hot Search start -->	
<div id="hot-search-con" class="ui-box ui-box-normal g-margin-top">	
    <h3 class="ui-box-title">热门搜索</h3>
    <div class="ui-box-content clearfix">
        <a href="" >暂无数据</a>
    </div>
</div>

<!-- Hot Search end -->	
</div>
<!--- left menu end -->
<div class="g-middle g-width-590 clearfix">
<!-- Banner start -->
<div id="banner-g3" class="g-marketing-pic">
	<div id="opacityToggleRind" class="productGroupOthersRind" style="position: relative;">
	<div id="opacityToggleContainer" class="productGroupOthersCotainer" style="position: relative; width: 590px; height: 220px;">		
	<?php if(!empty($marketing)) {
            $arrValue = explode("\n", $marketing['value1']);
            foreach($arrValue as $k=>$v) {
                $arrV = explode('|', trim($v));
    ?>		
        <div class="itemViewerItem" style="position: absolute; background: none; visibility: visible;">
            <a href="<?php echo $arrV[1];?>">
                <img width="590" height="220" src="<?php echo $arrV[2];?>">
            </a>
        </div>						
	<?php 
            }
          }
    ?> 					
	</div>
    <div id="opaNavContainerId" style="position: absolute;">
    <?php if(!empty($marketing)) {
            $arrValue = explode("\n", $marketing['value1']);
            foreach($arrValue as $k=>$v) {
                $arrV = explode('|', trim($v));
				$current = $k == 0 ? ' class="current"' : NULL;
				echo '<a href="javascript:void(0)"'.$current.' >'.($k + 1).'</a>';
			}
		}
    ?>
    </div>
    <script language="javascript">
		var is_block = 0;
		var a = $('#opaNavContainerId a');
		var banner = $(".itemViewerItem");
		var bannerfocus = setInterval("setfocus()", 2500);
		setfocus();
		function setfocus(obj) {
			if(typeof(obj) !== 'undefined') is_block = -9999;
			a.each(function(index, domEle){
				if(index == is_block || obj == domEle) {
					banner.eq(index).fadeIn("slow");
					$(this).addClass('current');
				} else {
					banner.eq(index).fadeOut("slow");
					$(this).removeClass('current');
				}
			 });
			 is_block++;
			 if(is_block >= <?php echo count($arrValue);?>) is_block = 0;
		}
		a.bind('mouseover', function(){clearInterval(bannerfocus);setfocus(this);})
		a.bind('mouseout', function(){is_block = 0;bannerfocus = setInterval("setfocus()", 2500);})
	</script>
	</div>
</div>
<!-- Banner end -->
<!--Hot products start -->
<div class="ui-box ui-box-normal ui-box-wrap">	
	<h3 class="ui-box-title">推荐阅读</h3>
	<div id="products-con" class="ui-box-content clearfix">
     <?php if(isset($recommend['value1']) && !empty($recommend['value1'])) {
						$arrValue = explode("\n", $recommend['value1']);
						$num = count($arrValue) - 1;
						foreach($arrValue as $k=>$v) {
							$arrV = explode('|', trim($v));
					?>
	<?php if($k % 3 == 0) echo '<ul class="g-box-3col">'; ?>
		<li class="<?php if($k % 3 == 2) {echo 'g-last';} else {echo 'img-con';} ?>">
			<div class="img-con">
				<a href="<?php echo $arrV[1];?>">
				<img src="<?php echo $arrV[2];?>" alt="<?php echo $arrV[0];?>">
				</a>
            </div>
			<div class="g-ellpsis produce-name">
				<a href="<?php echo $arrV[1];?>" target="_blank"><?php echo $arrV[0];?></a>
            </div>
			<div class="g-ellpsis">
				<span class="min"></span>
				<span class="min-info"></span>
			</div>
		</li>
    <?php if($k % 3 == 2) {echo '</ul><div class="g-cate-clear-line"></div>';} }} ?>
</div>
</div>

<div class="ui-box ui-box-normal ui-box-wrap g-margin-top">	
	<h3 class="ui-box-title">最受欢迎阅读</h3>
	<div id="top-3-suppliers" class="ui-box-content clearfix">
    <?php if(isset($recommend['value3']) && !empty($recommend['value3'])) {
		$arrValue = explode("\n", $recommend['value3']);
		$num = count($arrValue) - 1;
		foreach($arrValue as $k=>$v) {
			$arrV = explode('|', trim($v));
	?>
		<?php if($k % 2 == 0) echo '<ul class="g-box-2col"><h5 class="products-compony-info"> <span class="g-color-supplement"><span></span></span></h5>'; ?>
			<li class="<?php if($k % 2 == 0) {echo 'first-item';} else {echo 'g-last';} ?>" style="width:180px; overflow:hidden">	
				<a href="<?php echo $arrV[1];?>"><img alt="<?php echo $arrV[0];?>" src="<?php echo $arrV[2];?>"></a>
				<a href="<?php echo $arrV[1];?>" target="_blank"><?php echo $arrV[0];?></a>					
  <p class="min font-ta"><br/></p>
				<p class="text"></p>	
			</li>
        <?php if($k % 2 == 1) {echo '</ul>';}}} ?>	
        </div>
</div>
</div>
<!-- right col -->
<div class="g-right g-width-190 clearfix">
	<div id="latest-products-con" class="ui-box ui-box-normal buying-tools pad0">	
			<h3 class="ui-box-title">最新上传</h3>
			<div class="ui-box-content clearfix">		
				<ul class="g-box-mini-2col">
                <?php if(isset($recommend['value2']) && !empty($recommend['value2'])) {
						$arrValue = explode("\n", $recommend['value2']);
						$num = count($arrValue) - 1;
						foreach($arrValue as $k=>$v) {
							$arrV = explode('|', trim($v));
					?>
					<li>
						<div><img border="0" src="<?php echo $arrV['2']; ?>" alt="GT-R"></div>
							<div class="right">
								<div><a href="<?php echo $arrV['1']; ?>"><?php echo $arrV['0']; ?></a></div>
								<div class="g-tahoma product-location"></div>
                            </div>
					</li>
                 <?php }}?>
			</ul>
			<p class="g-link-entry"><a href=""></a><em></em></p>
		</div>
		</div>

		<div id="popular-categories-con" class="ui-box ui-box-normal buying-tools">	
			<h3 class="ui-box-title">受欢迎的类别</h3>
			<div class="ui-box-content">
				<ul class="g-box-mini-2col clearfix">					
					<li>
                        <h5><a href="">暂无数据</a></h5>
                        <div>
                            <p class="min"></p>
                            <p><a href=""></a></p>
                            <p><a href=""></a></p>
                        </div>
                        <div class="g-right">
                            <p class="min"></p>
                            <p><a href=""></a></p>
                            <p><a href=""></a></p>
                        </div>
					</li>
								
				</ul>	
			</div>
		</div>
	<!-- 黄展 start-->
<div id="CATE_HOME_COMMEND" class="g-margin-top">
    <div id="ads">
    	<div style="padding-bottom:5px;" align="center"></div>
    </div>
</div>	
	<!-- 黄展 end-->
	</div>	
</div>
<?php include 'comm/footer.php';?>
</body>
</html>
